package com.zz.inventory.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 优惠券管理对象 coupons
 * 
 * @author zz
 * @date 2025-07-07
 */
public class Coupons extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 优惠券唯一ID */
    private Long couponId;

    /** 优惠券名称（年度免费券） */
    @Excel(name = "优惠券名称", readConverterExp = "年=度免费券")
    private String couponName;

    /** 使用说明（如：激活后生效一年） */
    @Excel(name = "使用说明", readConverterExp = "如=：激活后生效一年")
    private String description;

    /** 有效时长（天），默认1年 */
    @Excel(name = "有效时长", readConverterExp = "天=")
    private Integer validPeriod;

    private Long schoolId;         //学校ID

    public Long getSchoolId() {
        return schoolId;
    }

    public void setSchoolId(Long schoolId) {
        this.schoolId = schoolId;
    }

    public void setCouponId(Long couponId)
    {
        this.couponId = couponId;
    }

    public Long getCouponId() 
    {
        return couponId;
    }

    public void setCouponName(String couponName) 
    {
        this.couponName = couponName;
    }

    public String getCouponName() 
    {
        return couponName;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setValidPeriod(Integer validPeriod) 
    {
        this.validPeriod = validPeriod;
    }

    public Integer getValidPeriod() 
    {
        return validPeriod;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("couponId", getCouponId())
            .append("couponName", getCouponName())
            .append("description", getDescription())
            .append("validPeriod", getValidPeriod())
                .append("schoolId",getSchoolId())
            .toString();
    }
}
